﻿using Abp.AutoMapper;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Shop.Dto
{
    /// <summary>
    /// 创建商品属性输入参数
    /// </summary>
    [AutoMapTo(typeof(GoodsAttribute))]
    public class CreateGoodsAttributeInput
    {
        /// <summary>
        /// 属性名
        /// </summary>
        [Required]
        [StringLength(GoodsAttribute.MaxNameLength)]
        public string Name { get; set; }

        /// <summary>
        /// 商品属性值
        /// </summary>
        public ICollection<string> ValueCollection { get; set; }
    }
}
